app.controller('SigninFormController',function($scope,$state,$http){
    $scope.login = function(){
      $http.post("/employee/login",$scope.item).success(function(response){
        if(response.sucflag){
          $state.go("home")
        }else{
            $scope.authError = true;
            $scope.authErrorMsg = response.message
        }
      })
    }

    $scope.signup = function(){
        $state.go("/siginup")
    }
})
